home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / Picking Mesh ShapeParts / Includes / PickMeshShapePartShell.h < prev    next >
Encoding:
Text File  |  1997-08-14  |  1.6 KB  |  69 lines  |  [TEXT/MPCC]

  1. // PickMeshShapePartShell.h
  2. //
  3. // Modification History:
  4. //
  5. //    01/01/95    nick    created this file from other stuff
  6. //    11/09/95    robert    removed unused things and added _documentRecord from
  7. //                        MeshShapePartPickShell.c. Added fPickPartStyle, fPickParts,
  8. //                        and support for shape part menu.
  9. //
  10. //
  11.  
  12. #ifndef _MESHSHAPEPARTPICKSHELL_H_
  13. #define _MESHSHAPEPARTPICKSHELL_H_
  14.  
  15.  
  16. // for QuickDraw 3D
  17. #include "QD3D.h"
  18. #include "QD3DGroup.h"
  19. #include "QD3DStyle.h"
  20. #include "QD3DView.h"
  21.  
  22. extern WindowPtr    gMainWindow;
  23.  
  24. //-------------------------------------------------------------------------------------------
  25.  
  26. struct _documentRecord {
  27.     TQ3ViewObject    fView;                // the view for the scene
  28.     TQ3GroupObject    fModel;                // object in the scene being modelled
  29.     TQ3StyleObject    fInterpolation;        // interpolation style used when rendering
  30.     TQ3StyleObject    fBackFacing;        // whether to draw shapes that face away from the camera
  31.     TQ3StyleObject    fFillStyle;            // whether drawn as solid filled object or decomposed to components
  32.     TQ3StyleObject    fPickPartStyle;        // indicates which shape parts can be picked
  33.  
  34.     TQ3PickParts    fPickParts;            // pick parts selected in shape part menu
  35. };
  36.  
  37. typedef struct _documentRecord DocumentRec, *DocumentPtr, **DocumentHdl;
  38.  
  39.  
  40. //-------------------------------------------------------------------------------------------
  41. //
  42. enum {
  43.     mApple = 128,
  44.     mFile,
  45.     mParts
  46. };
  47.  
  48. enum {
  49.     iAbout = 1
  50. };
  51.  
  52. enum {
  53.     iQuit = 1
  54. };
  55.  
  56. enum {
  57.     iObject = 1,
  58.     iFace,
  59.     iEdge,
  60.     iVertex
  61. };
  62.  
  63. //-------------------------------------------------------------------------------------------
  64. //
  65.  
  66. TQ3Status DrawDocumentData(
  67.     DocumentPtr    theDocument);
  68.  
  69. #endif